import type { ListResponseType } from '../global.type';

/**
 * 通用词库
 */
export interface CommonWordsLibType {
	names?: string | null;
	typeId: number;
	typeName: string;
	[key: string]: any;
}

/**
 * 通用词类型
 */
export interface CommonWordType {
	id?: number | null;
	name: string;
	[key: string]: any;
}
/**
 * 常用语
 */
export interface PhrasesType {
	id?: number | null;
	name: string;
	typeId?: number | null;
	[key: string]: any;
}

/**
 * 获取通用词库列表查询参数
 */
export interface GetCommonWordsSortByTypeQueryType {
	searchValue?: string;
	pageNum: number;
	pageSize: number;
}

/**
 * 获取通用词库列表响应结果
 */
export type GetCommonWordsSortByTypeResponseType = ListResponseType<CommonWordsLibType>;

/**
 * 添加或更新通用词类型参数
 */

export interface AddOrUpdateLibCommonSlangTypeParams {
	list: CommonWordType[];
}
/**
 * 添加或更新常用语参数
 */

export interface AddOrUpdatePhrasesParams {
	list: PhrasesType[];
}
